module square_draw 
#(
	parameter SIZE_X = 9,
	parameter SIZE_Y = 8
)
(
	input [SIZE_X:0] pixel_x, 
	input [SIZE_Y:0] pixel_y,
	input [SIZE_X:0] start_x, 
	input [SIZE_Y:0] start_y,
	input [SIZE_X:0] width, 
	input [SIZE_Y:0] height,
	output draw_square
);
//-----------------------------------
// Desenhando elementos retangulares
//-----------------------------------
assign draw_square = ((start_x <= pixel_x) && (pixel_x <= start_x+width) 
					&& (start_y <= pixel_y) && (pixel_y <= start_y+height));

endmodule
